from common.get_Singlelogintoken import school1001_Logintoken,school1002_Logintoken,\
county1003_Logintoken,county1004_Logintoken,city1005_Logintoken,root_Logintoken

class RoleFactory:
    def creat_role(self,role):
        if role=="school1001":
            return school1001_Logintoken().getlogintoken()
        elif role=="school1002":
            return school1002_Logintoken().getlogintoken()
        elif role=="county1003":
            return county1003_Logintoken().getlogintoken()
        elif role=="county1004":
            return county1004_Logintoken().getlogintoken()
        elif role=="city1005":
            return city1005_Logintoken().getlogintoken()
        elif role=="root":
            return root_Logintoken().getlogintoken()
        else:
            raise Exception("该角色不存在")